import createPersistedState from 'vuex-persistedstate'
import Vue from 'vue'
import Vuex from 'vuex'
// 用户信息模块
import common from './common';

Vue.use(Vuex)
export default new Vuex.Store({
    modules: {
        common,
    },
    plugins: [createPersistedState({
        // vuex持久化插件
        storage: window.sessionStorage
    })]
})
